@echo off
for /f "tokens=2 " %%i in ('tasklist /nh /fi "imagename eq KqSvrMgr.exe"') do (
    set pidNum=%%i
	taskkill /F /PID %%i
)
pause